<?php
	
class Table_Nationalites extends Zend_Db_Table_Abstract
{
    protected $_name    = 'nationalite';
    protected $_primary = 'NATIONALITE_NUMERO';
    protected $_sequence = true; //la table a un autoincrément
 	
    
    public function getNatByNum($numNat){
    	return $this->fetchRow($this->select()
    								->where ('NATIONALITE_NUMERO= ?', $numNat)
    						);
    }
    
    public function getAllNats(){
    	return $this->fetchAll($this
        	->select()
        	->from($this)
        	);
    }
}
